package com.dk.enumerate;

/**
 * HTTP枚举类
 */
public enum HttpEnum {
    HTTP("HTTP"),
    HTTPS("HTTPS"),
    SSL("SSL"),

    GET("GET"),
    POST("POST"),
    PUT("PUT"),
    DELETE("DELETE"),

    HEADER_CONNECTION("Connection"),
    HEADER_CONTENTTYPE("Content-Type"),

    JSON("JSON"),
    XML("XML"),
    FILE("FILE"),

    CODE_400("400"),
    CODE_401("401"),
    CODE_402("402"),
    CODE_403("403"),
    CODE_404("404"),
    CODE_405("405"),
    CODE_406("406"),
    CODE_407("407"),

    CODE_500("500"),
    CODE_501("501"),
    CODE_502("502"),
    CODE_503("503"),
    CODE_504("504"),
    CODE_505("505"),

    EMPTY_NULL("null"),
    EMPTY_ARRAY("[]"),
    EMPTY_OBJECT("{}");


    private String value;

    private HttpEnum(String value){
        this.value = value;
    }

    public String getValue(){
        return this.value;
    }

    public void setValue(String value){
        this.value = value;
    }


}
